home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Sample.bin / InboxWindow.java < prev    next >
Text File  |  1998-11-01  |  3KB  |  74 lines

  1. import java.awt.*;
  2. import com.sun.java.swing.*;
  3. import com.symantec.itools.swing.models.StringTreeModel;
  4.  
  5.  
  6.  
  7. public class InboxWindow extends com.sun.java.swing.JInternalFrame
  8. {
  9.     public InboxWindow()
  10.     {
  11.         // This code is automatically generated by Visual Cafe when you add
  12.         // components to the visual environment. It instantiates and initializes
  13.         // the components. To modify the code, only use code syntax that matches
  14.         // what Visual Cafe can generate, or Visual Cafe may be unable to back
  15.         // parse your Java file into its visual environment.
  16.         //{{INIT_CONTROLS
  17.         setIconifiable(true);
  18.         setMaximizable(true);
  19.         setTitle("In Box");
  20.         setResizable(true);
  21.         setClosable(true);
  22.         setDefaultCloseOperation(com.sun.java.swing.JFrame.DISPOSE_ON_CLOSE);
  23.         getContentPane().setLayout(new BorderLayout(0,0));
  24.         setSize(405,305);
  25.         {
  26.             String[] tempString = new String[29];
  27.             tempString[0] = "Unreal Mail";
  28.             tempString[1] = " Buy Stuff Now";
  29.             tempString[2] = " Read Me Now";
  30.             tempString[3] = " Hot Offer";
  31.             tempString[4] = " Re: Re: Thank You";
  32.             tempString[5] = " Fwd: Good Joke";
  33.             tempString[6] = "Personal";
  34.             tempString[7] = " Hi";
  35.             tempString[8] = " Good to hear from you";
  36.             tempString[9] = " Re: Thank You";
  37.             tempString[10] = "Business";
  38.             tempString[11] = " Thanks for your order";
  39.             tempString[12] = " Price Quote";
  40.             tempString[13] = " Here is the invoice";
  41.             tempString[14] = " Project Metal: delivered on time";
  42.             tempString[15] = " Your salary raise approved";
  43.             tempString[16] = "Spam";
  44.             tempString[17] = " Buy Now";
  45.             tempString[18] = " Make $$$ Now";
  46.             tempString[19] = " HOT HOT HOT";
  47.             tempString[20] = " Buy Now";
  48.             tempString[21] = " Don't Miss This";
  49.             tempString[22] = " Opportunity in Precious Metals";
  50.             tempString[23] = " Buy Now";
  51.             tempString[24] = " Last Chance";
  52.             tempString[25] = " Buy Now";
  53.             tempString[26] = " Make $$$ Now";
  54.             tempString[27] = " To Hot To Handle";
  55.             tempString[28] = " I'm waiting for your call";
  56.             stringTreeModel1.setItems(tempString);
  57.         }
  58.         //$$ stringTreeModel1.move(0,0);
  59.         JScrollPane1.setOpaque(true);
  60.         getContentPane().add("Center", JScrollPane1);
  61.         JScrollPane1.setBounds(0,0,405,305);
  62.         JTree1.setModel(stringTreeModel1);
  63.         JScrollPane1.getViewport().add(JTree1);
  64.         JTree1.setBounds(0,0,402,302);
  65.         //}}
  66.     }
  67.  
  68.     //{{DECLARE_CONTROLS
  69.     com.symantec.itools.swing.models.StringTreeModel stringTreeModel1 = new com.symantec.itools.swing.models.StringTreeModel();
  70.     com.sun.java.swing.JScrollPane JScrollPane1 = new com.sun.java.swing.JScrollPane();
  71.     com.sun.java.swing.JTree JTree1 = new com.sun.java.swing.JTree();
  72.     //}}
  73.  
  74. }